<html>
<head><meta charset="utf-8"><title>ra_lsp_server exclude folderss · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/ra_lsp_server.20exclude.20folderss.html">ra_lsp_server exclude folderss</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="168298147"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/ra_lsp_server%20exclude%20folderss/near/168298147" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> csmoe <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/ra_lsp_server.20exclude.20folderss.html#168298147">(Jun 17 2019 at 10:20)</a>:</h4>
<p><span class="user-mention" data-user-id="133169">@matklad</span> while working with rustc, lsp_server seemed traversing llvm-project folders, is there any option to exclude certain folders?<br>
<a href="/user_uploads/4715/-4vfdwAVi3UU5Z-M6yI8BGI0/pasted_image.png" target="_blank" title="pasted_image.png">pasted image</a></p>
<div class="message_inline_image"><a href="/user_uploads/4715/-4vfdwAVi3UU5Z-M6yI8BGI0/pasted_image.png" target="_blank" title="pasted image"><img src="/user_uploads/4715/-4vfdwAVi3UU5Z-M6yI8BGI0/pasted_image.png"></a></div>



<a name="168298261"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/ra_lsp_server%20exclude%20folderss/near/168298261" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/ra_lsp_server.20exclude.20folderss.html#168298261">(Jun 17 2019 at 10:23)</a>:</h4>
<p>This is not supported directly, but underling mechanisms for file inclusion are already there</p>



<a name="168298309"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/ra_lsp_server%20exclude%20folderss/near/168298309" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/ra_lsp_server.20exclude.20folderss.html#168298309">(Jun 17 2019 at 10:24)</a>:</h4>
<p>so, it shoudn't be too hard to add an option to specify file exclusions</p>



<a name="168298316"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/ra_lsp_server%20exclude%20folderss/near/168298316" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/ra_lsp_server.20exclude.20folderss.html#168298316">(Jun 17 2019 at 10:24)</a>:</h4>
<p><code>WorldState::new</code> is responsible for that</p>



<a name="168298331"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/ra_lsp_server%20exclude%20folderss/near/168298331" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/ra_lsp_server.20exclude.20folderss.html#168298331">(Jun 17 2019 at 10:24)</a>:</h4>
<p>that said, although we do traverse llvm folder, we shouldn't be loading any files from it, because we do filter by file extension</p>



<a name="168298366"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/ra_lsp_server%20exclude%20folderss/near/168298366" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> csmoe <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/ra_lsp_server.20exclude.20folderss.html#168298366">(Jun 17 2019 at 10:25)</a>:</h4>
<p>gotcha <span aria-label="slight smile" class="emoji emoji-1f642" role="img" title="slight smile">:slight_smile:</span> thanks</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>